home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 604 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: grafix.xs4all.nl!john.hendrikx
  2. Date: Sun, 07 Jan 96 14:31:16 GMT+1
  3. Newsgroups: comp.sys.amiga.programmer
  4. Distribution: world
  5. Subject: Re: Protection bits
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=iso-8859-1
  8. Content-Transfer-Encoding: 8bit
  9. From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
  10. Message-ID: <john.hendrikx.44q1@grafix.xs4all.nl>
  11. Organization: Grafix Attack BBS Holland
  12.  
  13. In a message of 06 Jan 96 Michael Van Elst wrote to All:
  14.  
  15.  >> I'd like to see a new set of flags, or somekind of ID stored with each
  16.  >> file which tells you the filetype.  In other words taking the 'e' and 's'
  17.  >> bit concepts one step further.
  18.  
  19.  MVE> With flags being pretty independent of the data in the file it is hard
  20.  MVE> to make them a file type ID.
  21.  
  22. Maybe the filesystem could be extended with somekind of hook which sets the
  23. file-type correctly by looking at the first 512-bytes of the file when it is
  24. first written/modified.  It would be an automatic FileID-ing system which could
  25. be extended with new FileID's which the file system could recognise and store
  26. as a FileID long in the fileinfoblock.
  27.  
  28. When I come to think of it this doesn't seem all that hard to do and it would
  29. probably not even slow down the filesystem.  I mean, taking a peek at the first
  30. 512 bytes as it is written shouldn't be that hard.  The only trouble is that
  31. 512 bytes might not be sufficient to make a FileID...
  32.  
  33. This would make doing a directory with FileID's and with only IFF files in them
  34. really fast, like on the MAC's (even though they use an even more extensive,
  35. but unfortunately not always reliable system (you sometimes need to set the
  36. FileType correctly yourself...)).
  37.  
  38. Grtz John
  39.  
  40. -----------------------------------------------------------------------
  41.  John.Hendrikx@grafix.xs4all.nl   TextDemo/FastView/Etc... development
  42. -----------------------------------------------------------------------
  43. -- Via Xenolink 1.981, XenolinkUUCP 1.1
  44.